<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkReportVideoUploadPartRequest extends Request
{

    /**
     * 多多客信息流投放备案视频上传分片上传接口
     * @var string
     */
    private $type = 'pdd.ddk.report.video.upload.part';

    /**
     * 当前分片的文件流
     * @var
     */
    private $partFile;

    /**
     * 当前分片编号名，从1开始
     * @var
     */
    private $partNum;

    /**
     * 标记本次大文件上传的id（init阶段的返回值）
     * @var
     */
    private $uploadSign;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setPartFile($partFile)
    {
        $this->partFile = $partFile;
    }

    public function getPartFile()
    {
        return $this->partFile;
    }

    public function setPartNum($partNum)
    {
        $this->partNum = $partNum;
    }

    public function getPartNum()
    {
        return $this->partNum;
    }

    public function setUploadSign($uploadSign)
    {
        $this->uploadSign = $uploadSign;
    }

    public function getUploadSign()
    {
        return $this->uploadSign;
    }

    public function getParams()
    {
        $params = [
            'type'        => $this->type,
            'part_file'   => $this->partFile,
            'part_num'    => $this->partNum,
            'upload_sign' => $this->uploadSign,
        ];
        return array_filter($params);
    }
}
